import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import {HighlightDirective} from '../directives/drag.directive';
import { FormsModule }   from '@angular/forms';  
import { HttpModule } from '@angular/http'

import { MyApp } from './app.component';
import {DomTestPage} from '../pages/dom-test/dom-test';
import{FormShowPage} from '../pages/form-show/form-show';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import {FormAddPage} from '../pages/form-add/form-add';
@NgModule({
  declarations: [
    HighlightDirective,
    MyApp,
    DomTestPage,
    FormShowPage,
    FormAddPage
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp),
    FormsModule,
    HttpModule
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    DomTestPage,
    FormShowPage,
    FormAddPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
